-- GENERATED SPELL FOR [Sal'salabim] --


function spell0_18584(pUnit, Event) --@Magnetic Pull,n/a--
pUnit:FullCastSpellOnTarget(31705,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18584', 500, 1)
end

function Sorts_18584(pUnit, Event)
local choix_sorts_18584 = math.random(0, 0)
if choix_sorts_18584 == 0 then
pUnit:RegisterEvent('spell0_18584', 1, 1)
end
end

function mob18584_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18584', math.random(1500, 3000), 1)
end

function mob18584_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18584_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18584_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18584, 1, 'mob18584_Action')
RegisterUnitEvent(18584, 2, 'mob18584_Leave')
RegisterUnitEvent(18584, 3, 'mob18584_Kill')
RegisterUnitEvent(18584, 4, 'mob18584_Die')
